<template>
   <div class="header">
     <div class="header-left"><span class="iconfont">&#xe624;</span></div>
     <div class="header-input"><span class="iconfont way">&#xe632;</span>输入城市景点/游玩/主题</div>
     <router-link to='/city' class="link">
     <div class="header-right">{{this.$store.state.city}}<span class="iconfont">&#xe611;</span></div>
     </router-link>
   </div>
</template>

<script>
export default{
  name: 'HomeHeader'
}
</script>

<style lang="stylus" scoped>
  @import '~style/varibles.styl'
  .header
    line-height: .86rem
    background: $bgcolor
    color:#fff
    display:flex
    .header-left
      text-align:center
      width: .64rem
      float: left
    .header-input
      padding-left: .2rem
      flex:1
      height: .64rem
      margin-top: .12rem
      margin-left: .2rem
      background: #fff
      border-radius: .1rem
      color:#ccc
      line-height: .64rem
      .way
        padding-right:.1rem
    .header-right
      min-width:1.24rem
      float:right
      text-align:center
      color:#fff
      padding-left:.1rem
    .link
      color:black
</style>
